package com.rpc.demo;

import com.google.common.collect.Lists;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

/**
 * @author yangzhuoleo
 * @Description ${Description}
 * @create 2018-01-15 23:28
 **/
@Service
public class TestServiceImpl implements TestService {
    @Override
    public String sayHello(String msg) {
        return "server " + msg;
    }

    @Override
    public List<String> getList(Integer a) {

        List<String> lists = Lists.newArrayListWithExpectedSize(10000);
        for (int index = 0; index < 1000; ++index) {
            lists.add(UUID.randomUUID().toString());
        }
        return lists;
    }

    @Override
    public void sayHi(String msg) {
        System.out.println(msg);
    }
}
